Method InitializeAsync(IRedbService, params Assembly[])
Unified initialization point for REDB system on application startup.
Executes all necessary steps in correct order:
Automatic synchronization of all schemes with RedbSchemeAttribute
RedbObjectFactory initialization for object creation
AutomaticTypeRegistry initialization for polymorphic operations
Usage example:
Option 1: Automatically finds all loaded assemblies
await redb.InitializeAsync();
Option 2: Explicitly specify assemblies to scan
await redb.InitializeAsync(typeof(MyModel).Assembly, typeof(AnotherModel).Assembly);
Option 3: Current assembly only
await redb.InitializeAsync(Assembly.GetExecutingAssembly());
[Obsolete("Use await redb.InitializeAsync() directly - method is integrated into IRedbService")]
public static Task InitializeAsync(this IRedbService redb, params Assembly[] assemblies)